<?php

require_once('../../config/maptrick.conf.php');
require_once(SITE_ROOT . 'lib/Session.php');
require_once(SITE_ROOT . 'lib/SmartyMaptrick.class.php');
require_once(SITE_ROOT . 'class/logic/LogicHoC.class.php');

$logic = LogicHoC::getInstance();
$smarty = new SmartyMaptrick();

if (isset($_GET['month'])) {
	$month = $_GET['month'];
}
else $month = 0;

$smarty->assign_by_ref('years', $logic->getYears($month));
$smarty->assign('selected_year', $_GET['year']);

$smarty->display('hoc/select_years.tpl');

?>